{% extends 'TopxiaWebBundle:Coin:layout.html.twig' %}
{% block title %}我的积分明细 - {{ parent() }}{% endblock %}

{% set side_nav = 'my-ilist' %}

{% block main %}

  <div class="es-section h400" style="position:relative;">
    {% include 'TopxiaWebBundle:Coin:integral-bar.html.twig' %}

 
      
  <table class="table table-striped table-hover" id="orders-table">
	  <thead>
    <tr>
      <th>姓名/email</th>
      <th>得分时间</th>
     
      <th>积分</th>
	  <th>得到的方式</th>
    </tr>
  </thead>
  <tbody>
    {% for integral in integrals %}
     
        <tr id="order-table-{{integral.id}}" style="word-break: break-all;word-wrap: break-word;">
          <td>
       
            <span class="text-muted text-sm">{% if integral.truename == '' %}{{ integral.email}}{% else %}{{ integral.truename}}{% endif %}</span>
          </td>
          <td><span class="text-muted text-sm">{{ integral.signintime|date('Y-n-d H:i:s') }}</span></td>
          <td>{{ integral.signinintegral }}</td>
      <td>
	  {% if integral.getintegraltype == 'singnin' %}邀请{% endif %}
	  
	  {% if integral.getintegraltype == 'invitation' %}签到{% endif %}
	  
	  {% if integral.getintegraltype == 'buy' %}买课程{% endif %}
	  
	 </td>
        </tr>
    {% else %}
      <tr><td colspan="4"><div class="empty">暂无积分明细</div></td></tr>
    {% endfor %}
  </tbody>
	  
	 </table> 
     

      
   
  </div>

  

{% endblock %}